package com.heaven.service;


import com.heaven.core.entity.DanmuEntity;
import com.heaven.core.framework.PzService;
import com.heaven.customerServer.customerController.vo.danmu.SendDanmuReq;

import java.util.List;

public interface DanmuService extends PzService<DanmuEntity> {

    boolean saveDanmu(SendDanmuReq req, String userId);

//    /**
//     * 获取Dplayer弹幕池
//     * @param videoId 视频ID
//     * @return Dplayer弹幕列表
//     */
//    List<List<Object>> convertToDplayerDanmuPool(String videoId);

    /**
     * 获取artPlayer的弹幕池
     * @param videoId 视频ID
     * @return artPlayer弹幕列表
     */
    List<DanmuEntity> loadArtPlayerDanmuPool(String videoId);
}
